<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>京城男人帮---个人资料</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/head.css" />
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/footer.css" />
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/suercenter.css" />
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/index.css"/>
	<script type="text/javascript">
        function over(){
            var div = document.getElementById('alltype');//获取大div对象
            var text = document.getElementById('indextype');//获取文字div对象
            text.style.display="block";
        }//鼠标进入显示文字
        function out(){
            var div = document.getElementById('alltype');
            var text = document.getElementById('indextype');
            text.style.display="none";
        }//鼠标退出不显示文字
    </script>
    <style type="text/css" media="screen">
        #indextype{
            position: relative;
            float: left;
            top: 0;
            left: 50%;
            margin-left: -600px;
            width: 215px;
            height: 380px;
            background-color: #C81623;
            z-index: 4;
        }
    </style>
</head>
<body>
	<!--顶部公用-->
	{include file="public/top"}
    <!--头部end-->
	<!-- 菜单 -->
    {include file="public/all_type"}
    <!-- 菜单 -->
	<div class="w1000 ClearFix margin_top20">
		<!--左侧end-->
        {include file="public/ur_left"}
		<!--左侧end-->
		
		<div class="ur_right ClearFix">
			<!--uer_top-->
			<div class="ur_location">
				<a href="{:url('home/user/userindex')}">个人信息</a>
				<span>&gt;</span>
				<a class="a_cur">个人资料</a>
			</div>
			<!--uer_top-->
			<div class="base_info">
                <form action="{:url('user/userinfo')}" method="post" enctype="multipart/form-data">
				<div class="info_top">
					<div class="bi_l">
						<div class="m_img">
							<div class="hg_box">
								<img src="__PUBLIC__/home/image/hg_img_0.png" >
							</div>
                            <input type="file" id="btn_file" style="display:none" name="u_photo">
							<img src="__ROOT__/<?= $data['u_photo']?>" onclick="F_Open_dialog()">
						</div>
						<!--<a class="" href="">修改头像</a>-->
					</div>
					<div class="bi_r">
						<div class="m_username">用户名：<span><?= $data['u_name'] ?></span></div>
						<!-- <div class="m_grade"><span>注册会员</span></div> -->
					</div>
				</div>

					<input name "" value="" type="hidden">
					<input name="" value="ok" type="hidden">
					<input name="" value="" type="hidden">
					<div class="base_item">
						<span class="label_name"><span>*</span>昵称：</span>
                        <input type="text" id="member_truename" value="<?= $data['u_nickname']?>" name="u_nickname">
						<div class="addr_msg">
							<span id="error_member_truename"></span>
						</div>
					</div>
					<div class="base_item">
						<span class="label_name"><span>*</span>性别：</span>
                        <?php if($data['u_sex']==1){?>
                        <label class="s_radio"><input name="u_sex" value="2" type="radio">女 </label>
                        <label class="s_radio"><input name="u_sex" value="1" checked="checked" type="radio">男</label>
                        <?php }elseif($data['u_sex']==2){ ?>
						<label class="s_radio"><input name="u_sex" value="2" checked="checked" type="radio">女 </label>
						<label class="s_radio"><input name="u_sex" value="1" type="radio">男</label>
                        <?php }elseif($data['u_sex']==''){ ?>
                        <label class="s_radio"><input name="u_sex" value="2" type="radio">女 </label>
                        <label class="s_radio"><input name="u_sex" value="1" type="radio">男</label>
                        <?php } ?>
						<div class="addr_msg"><span id="error_member_sex"></span></div>
					</div>
                    <div class="base_item">
                        <span class="label_name"><span>*</span>手机号：</span>
                        <input type="text" id="rtel" value="<?= $data['u_tel']?>" name="u_tel">
                        <div class="addr_msg">
                            <span id="error_member_truetel"></span>
                        </div>
                    </div>
                    <div class="base_item">
                        <span class="label_name"><span>*</span>邮箱：</span>
                        <input type="text" id="email" value="<?= $data['u_email']?>" name="u_email">
                        <div class="addr_msg">
                            <span id="error_member_trueemail"></span>
                        </div>
                    </div>
					<div class=" base_btn">
                        <button type="submit">保存</button>
					</div>
				</form>
			</div>
		</div>
	</div>

	<!--底部公用-->
    {include file="public/footer"}
    <!--底部end-->
</body>
</html>
<script src="__PUBLIC__/home/js/jquery-1.7.2.min.js"></script>
<script>
    function F_Open_dialog()
    {
        document.getElementById("btn_file").click();
    }
</script>